Rotational image viewer

ABSTRACT

A rotational image viewer for viewing an image on a mobile device having a display including a viewport. The image viewer monitors the orientation of the mobile device and enlarges/reduces the image responsive to the mobile device&#39;s orientation such that the viewport remains filled with at least a portion of the image (i.e., no letterboxing or pillarboxing within the viewport).

TECHNICAL FIELD

This disclosure relates to mobile devices with viewers for viewingimages on displays. More specifically, this disclosure relates torotational image viewers that monitor the orientation of the mobiledevice and expand/contract the image to fill a viewport of a display.

BACKGROUND

Many types of mobile devices available today, such as smartphones,tablets, laptops, and handheld devices, include a variety of cameras,sensors, wireless transceivers, input systems (e.g., touch-sensitivesurfaces, pointers), peripheral devices, displays, and graphical userinterfaces (GUIs) through which a user can interact with displayedcontent.

The display of a mobile device enables a user to view images (still orvideo) captured by the mobile device or another device.

BRIEF DESCRIPTION OF THE DRAWINGS

Features of the various examples described will be readily understoodfrom the following detailed description, in which reference is made tothe figures. A reference numeral is used with each element in thedescription and throughout the several views of the drawing. When aplurality of similar elements is present, a single reference numeral maybe assigned to like elements, with an added lower-case letter referringto a specific element. When referring to such elements collectively orto one or more non-specific elements, the lower-case letter may beomitted.

The various elements shown in the figures are not drawn to scale unlessotherwise indicated. The dimensions of the various elements may beenlarged or reduced in the interest of clarity. The several figuresdepict one or more implementations that are presented by way of exampleonly and should not be construed as limiting. Included in the drawingare the following figures:

FIG. 1 is a diagrammatic representation of an example hardwareconfiguration for a mobile device with a rotational image viewer;

FIG. 2 is a schematic illustration of an image capture device (eyeweardevice), mobile device with rotational image viewer, and a networkdevice;

FIG. 3A is an illustration of a mobile device with rotational imageviewer in a vertical orientation;

FIG. 3B is an illustration of the mobile device of FIG. 3A in ahorizontal orientation.

FIG. 4A is an illustration of a portion of an image filling a viewportof a mobile device in a vertical orientation;

FIG. 4B is an illustration of a portion of the image filling a viewportof the mobile device of FIG. 4A in a horizontal orientation;

FIG. 4C is an illustration of a portion of the image filling a viewportof the mobile device of FIGS. 4A and 4B as the mobile device transitionsbetween the vertical orientation and the horizontal orientation

FIG. 4D is an illustration of a portion of another image filling aviewport of another mobile device in a vertical orientation;

FIG. 4E is an illustration of a portion of the other image filling aviewport of the other mobile device in a horizontal orientation;

FIGS. 5A, 5B, 5C, 5D, and 5E are flow charts including steps forimplementing a rotational image viewer.

DETAILED DESCRIPTION

Various implementations and details are described with reference toexamples including a rotational image viewer for a mobile device (suchas a cellular telephone). The rotational image viewer enables viewing animage on the mobile device within a viewport. The image viewer monitorsthe orientation of the mobile device and enlarges/reduces the imageresponsive to the mobile device's orientation such that the viewportremains filled with at least a portion of the image (i.e., noletterboxing or pillarboxing within the viewport).

The following detailed description includes systems, methods,techniques, instruction sequences, and computing machine programproducts illustrative of examples set forth in the disclosure. Numerousdetails and examples are included for the purpose of providing athorough understanding of the disclosed subject matter and its relevantteachings. Those skilled in the relevant art, however, may understandhow to apply the relevant teachings without such details. Aspects of thedisclosed subject matter are not limited to the specific devices,systems, and method described because the relevant teachings can beapplied or practice in a variety of ways. The terminology andnomenclature used herein is for the purpose of describing particularaspects only and is not intended to be limiting. In general, well-knowninstruction instances, protocols, structures, and techniques are notnecessarily shown in detail.

The terms “coupled” or “connected” as used herein refer to any logical,optical, physical, or electrical connection, including a link or thelike by which the electrical or magnetic signals produced or supplied byone system element are imparted to another coupled or connected systemelement. Unless described otherwise, coupled or connected elements ordevices are not necessarily directly connected to one another and may beseparated by intermediate components, elements, or communication media,one or more of which may modify, manipulate, or carry the electricalsignals. The term “on” means directly supported by an element orindirectly supported by the element through another element that isintegrated into or supported by the element.

The term “proximal” is used to describe an item or part of an item thatis situated near, adjacent, or next to an object or person; or that iscloser relative to other parts of the item, which may be described as“distal.” For example, the end of an item nearest an object may bereferred to as the proximal end, whereas the generally opposing end maybe referred to as the distal end.

The orientations of the eyewear device, other mobile devices, associatedcomponents and any other devices incorporating, for example, a camera,an inertial measurement unit, or both such as shown in any of thedrawings, are given by way of example only, for illustration anddiscussion purposes. In operation, the devices may be oriented in anyother direction suitable to the particular application of the device;for example, up, down, sideways, or any other orientation. Also, to theextent used herein, any directional term, such as front, rear, inward,outward, toward, left, right, lateral, longitudinal, up, down, upper,lower, top, bottom, side, horizontal, vertical, and diagonal are used byway of example only, and are not limiting as to the direction ororientation of any camera or inertial measurement unit as constructed oras otherwise described herein.

Additional objects, advantages and novel features of the examples willbe set forth in part in the following description, and in part willbecome apparent to those skilled in the art upon examination of thefollowing and the accompanying drawings or may be learned by productionor operation of the examples. The objects and advantages of the presentsubject matter may be realized and attained by means of themethodologies, instrumentalities and combinations particularly pointedout in the appended claims.

Reference now is made in detail to the examples illustrated in theaccompanying drawings and discussed below.

FIG. 1 is a high-level functional block diagram of an example mobiledevice 101 with a rotational image viewer. Mobile device 101 includes aflash memory 140A that stores programming to be executed by a CPU 130 toperform all or a subset of the functions described herein.

The mobile device 101 includes a camera 170 that includes at least onevisible-light camera (e.g., first and second visible-light cameras withoverlapping fields of view). Flash memory 140A may further includemultiple images or video, which are generated via the camera 170 orreceived from another device via transceivers 110/120.

As shown, the mobile device 101 includes an image display 180. An imagedisplay driver 182 and controller 184, under control of CPU 130, controlthe display of images on image display 180. In the example of FIG. 1,the image display 180 includes a user input layer 191 (e.g., atouchscreen) that is layered on top of or otherwise integrated into thescreen used by the image display 180. The image display driver 182 andcontroller 184 are coupled to CPU 130 in order to drive the display 180.

The mobile device may be a touchscreen-type mobile device. Examples oftouchscreen-type mobile devices that may be used include (but are notlimited to) a smart phone, a personal digital assistant (PDA), a tabletcomputer, a laptop computer, or other portable device. However, thestructure and operation of the touchscreen-type devices is provided byway of example; the subject technology as described herein is notintended to be limited thereto. For purposes of this discussion, FIG. 1therefore provides a block diagram illustration of the example mobiledevice 101 with a user interface that includes a touchscreen input layer191 for receiving input (by touch, multi-touch, or gesture, and thelike, by hand, stylus or other tool) and an image display 180 fordisplaying content.

As shown in FIG. 1, the mobile device 101 includes at least one digitaltransceiver (XCVR) 110, shown as WWAN XCVRs, for digital wirelesscommunications via a wide-area wireless mobile communication network.The mobile device 101 also includes additional digital or analogtransceivers, such as short-range transceivers (XCVRs) 120 forshort-range network communication, such as via NFC, VLC, DECT, ZigBee,Bluetooth™, or WiFi. For example, short range XCVRs 120 may take theform of any available two-way wireless local area network (WLAN)transceiver of a type that is compatible with one or more standardprotocols of communication implemented in wireless local area networks,such as one of the WiFi standards under IEEE 802.11.

The eyewear device 200 includes one or more motion/orientation-sensingcomponents referred to as an orientation sensor (IMU) 172. Themotion-sensing components may be micro-electro-mechanical systems (MEMS)with microscopic moving parts incorporated into a microchip. Theorientation sensor 172 in some example configurations includes anaccelerometer, a gyroscope, and a magnetometer. The accelerometer sensesthe linear acceleration of the device 101 (including the accelerationdue to gravity) relative to three orthogonal axes (x, y, z). Thegyroscope senses the angular velocity of the device 101 about three axesof rotation (pitch, roll, yaw). Together, the accelerometer andgyroscope can provide position, orientation, and motion data about thedevice relative to six axes (x, y, z, pitch, roll, yaw). Themagnetometer, if present, senses the heading of the device 101 relativeto magnetic north. The position of the device 101 may be determined bylocation sensors, such as a GPS unit, one or more transceivers togenerate relative position coordinates, altitude sensors or barometers,and other orientation sensors.

The orientation sensor 172 may include or cooperate with a digitalmotion processor or programming that gathers the raw data from thecomponents and compute a number of useful values about the position,orientation, and motion of the device 101. For example, the accelerationdata gathered from the accelerometer can be integrated to obtain thevelocity relative to each axis (x, y, z); and integrated again to obtainthe position of the device 101 (in linear coordinates, x, y, and z). Theangular velocity data from the gyroscope can be integrated to obtain theposition of the device 101 (in spherical coordinates). The programmingfor computing these useful values may be stored in memory 140 andexecuted by the CPU 130.

To generate location coordinates for positioning of the mobile device101, the mobile device 101 can include a global positioning system (GPS)receiver. Alternatively, or additionally the mobile device 101 canutilize either or both the short range XCVRs 120 and WWAN XCVRs 110 forgenerating location coordinates for positioning. For example, cellularnetwork, WiFi, or Bluetooth™ based positioning systems can generate veryaccurate location coordinates, particularly when used in combination.Such location coordinates can be transmitted to the eyewear device overone or more network connections via XCVRs 110, 120.

The transceivers 110, 120 (i.e., the network communication interface)conforms to one or more of the various digital wireless communicationstandards utilized by modern mobile networks. Examples of WWANtransceivers 110 include (but are not limited to) transceiversconfigured to operate in accordance with Code Division Multiple Access(CDMA) and 3rd Generation Partnership Project (3GPP) networktechnologies including, for example and without limitation, 3GPP type 2(or 3GPP2) and LTE, at times referred to as “4G.” For example, thetransceivers 110, 120 provide two-way wireless communication ofinformation including digitized audio signals, still image and videosignals, web page information for display as well as web-related inputs,and various types of mobile message communications to/from the mobiledevice 101.

The mobile device 101 further includes a microprocessor that functionsas a central processing unit (CPU); shown as CPU 130 in FIG. 1. Aprocessor is a circuit having elements structured and arranged toperform one or more processing functions, typically various dataprocessing functions. Although discrete logic components could be used,the examples utilize components forming a programmable CPU. Amicroprocessor for example includes one or more integrated circuit (IC)chips incorporating the electronic elements to perform the functions ofthe CPU. The CPU 130, for example, may be based on any known oravailable microprocessor architecture, such as a Reduced Instruction SetComputing (RISC) using an ARM architecture, as commonly used today inmobile devices and other portable electronic devices. Of course, otherarrangements of processor circuitry may be used to form the CPU 130 orprocessor hardware in smartphone, laptop computer, and tablet.

The CPU 130 serves as a programmable host controller for the mobiledevice 101 by configuring the mobile device 101 to perform variousoperations, for example, in accordance with instructions or programmingexecutable by CPU 130. Example operations include various generaloperations of the mobile device, as well as operations related to theprogramming for applications on the mobile device 101.

The mobile device 101 includes a memory or storage system, for storingprogramming and data. In the example, the memory system includes a flashmemory 140A, a random-access memory (RAM) 140B, and other memorycomponents 140C, as needed. The RAM 140B serves as short-term storagefor instructions and data being handled by the CPU 130, e.g., as aworking data processing memory. The flash memory 140A typically provideslonger-term storage.

In the example of mobile device 101, the flash memory 140A is used tostore programming or instructions for execution by the CPU 130.Depending on the type of device, the mobile device 101 stores and runs amobile operating system through which specific applications areexecuted. Examples of mobile operating systems include Google Android,Apple iOS (for iPhone or iPad devices), Windows Mobile, Amazon Fire OS,RIM BlackBerry OS, or the like.

The memory 140A includes an image detection utility 162, a displaydetection utility 164, a display orientation utility 166, an imagescaling utility 168, and a touch detection utility. The image detectionutility 162 identifies and detects parameters of an image for display.The display detection utility 164 identifies and detects parameters ofdisplay on which the image will be displayed. The display orientationutility 166 detects orientation/rotation of the display (e.g., based oninput from orientation sensor 172). The image scaling utility 168 scalesthe image responsive to the orientation/rotation to fill a viewport ofthe display, The touch detection utility identifies and detects gestureson the display (e.g., a finger press, drag or swipe) and adjusts theportion of the image presented in the viewport of the display responsiveto gestures on the display.

FIG. 2 is a functional block diagram of an example rotational imageviewer system 100 that includes a mobile device 101 (e.g., a cellulartelephone), another device (e.g., an eyewear device 200), and a networkdevice 201 connected via various networks such as the Internet.

As shown in FIG. 2, the eyewear device 200 includes a visible-lightcamera 220 that captures still images, video images, or both still andvideo images. The camera 220 may have a direct memory access (DMA) tohigh-speed circuitry within the eyewear device 200. The camera 220 maybe used to capture a red, green, and blue (RGB) imaged scene. Theeyewear device 200 additionally includes a processor 202 for processingimages captured by the camera 220 and a transceiver 204 for sending,under control of the processor 202, the images to the mobile device 101or server system 201.

The network device 201 may be one or more computing devices as part of aservice or network computing system, for example, that include aprocessor, a memory, and network communication interface to communicateover the network with the mobile device 101 and another mobile devicesuch as the eyewear device 200. In one example, the server system 201receives images from the eyewear device 200 or the mobile device 101,optionally stores the received images, and sends the stored images to arequesting device such as the mobile device 101 or the eyewear device200. The network device 201 may be a communication device such as arouter or another device accessible over a network such as a serversystem. Suitable routers and server systems will be understood by one ofskill in the art from the description herein.

The mobile device 101 may communicate directly with the eyewear device200 (e.g., via a Bluetooth™ connection) or indirectly via a wirelessnetwork device 201. In one example, the eyewear device 200 and themobile device 101 initially establish a direct Bluetooth connection. Ifthe eyewear device 200 or the mobile device 101 determine that a WiFiconnection is available and that bandwidth requirements exceed thatavailable via Bluetooth, the eyewear device 200 and the mobile device101 may transition to communicating via WiFi. Otherwise, the eyeweardevice 200 and the mobile device 101 may continue using the directBluetooth connection, which has lower power consumption and lessbandwidth than WiFi.

FIG. 3A depicts an example mobile device 101 in a horizontalorientation. The mobile device 101 includes a display 300 (e.g., display180). The display 300 includes a viewport 302 for viewing images. In oneexample, viewport 302 is defined by the driver 182 and controller 184 ofdisplay 180. The viewport 302 may encompass the entire viewable area ofthe display 180 or a portion of the display 180 in which an interiorarea 304 of the display 180 displays at least a portion of the imagebeing presented in the viewport 302 and an exterior area 306 of thedisplay 180 may display one or more other images or a different portionof the same image.

FIG. 3B depicts the example mobile device 101 in a horizontalorientation. The viewport 312 of the display 300 (e.g., display 180) inthe horizontal orientation may be the same as the viewport 302 (FIG. 3A)in the vertical orientation or it may be different. The viewport 312 mayencompass the entire viewable area of the display 180 or a portion ofthe display 180 in which an interior area 314 of the display 180displays at least a portion of the image being presented in the viewport302 and an exterior area 316 of the display 180 may display one or moreother images or a different portion of the same image.

FIG. 4A-4E depict examples of images and their relationship to aviewport of a display for use in describing the steps of FIGS. 5A-5E forimplementing a rotational image viewer. In the images and examples, theaspect ratio of the image and its orientation with respect to the useris maintained regardless of the display orientation.

FIG. 4A depicts an image 402 for viewing in a viewport 404 of a mobiledevice in a first orientation (e.g., a vertical/portrait orientation).The viewport 404 includes a pair of vertices on an edge of the viewport404—a first vertex 406 a (designated with letter A) and a second vertex406 b (designated with letter B). In an example, the pair of verticesare on an edge of the viewport 404 that coincides with an edge of theimage 402 when the image is enlarged such that it fills the viewport 404along one axis (e.g., a vertical axis) and extends beyond the viewport404 in another axis perpendicular to that axis (e.g., a horizontalaxis). In other words, the image fits to the height of the eligibleviewport 404 with the image/media aspect ratio preserved. In thisorientation, there may be portions of the image/media cut off from viewin a horizontal dimension.

The viewport 404 is encompassed within a circle 406 c having an origin406 d at the center of the display and a radius corresponding to thedistance between the origin 406 d and a vertex 406 a, b. The origin 406c may be determined by calculating lines extending between vertices onopposite ends of the view port and identifying where the lines cross.

FIG. 4B depicts an image 422 (e.g., the same or a different image thanin FIG. 4A) for viewing in a viewport 404′ of a mobile device in asecond orientation (e.g., a vertical/landscape orientation). Theviewport 404′ (which may have the same dimensions as viewport 404)includes the pair of vertices 406 a, b on the edge of the viewport 404′.In an example, the pair of vertices are on an edge of the viewport 404′that coincide with the same edge of the image 402 as in FIG. 4A when theimage is enlarged such that it fills the viewport along one axis (e.g.,a horizontal axis) and extends beyond the viewport 404′ in another axisperpendicular to that axis (e.g., a vertical axis). In other words, theimage fits to the height of the eligible viewport 404′ with theimage/media aspect ratio preserved. In this orientation, there may beportions of the image/media cut off from view in a vertical dimension.

FIG. 4C depicts an image 442 (e.g., the same or a different image thanin FIGS. 4A and 4B) for viewing in a viewport 404″ of a mobile device inan orientation between the first orientation (FIG. 4A) and the secondorientation (FIG. 4B). When the display rotates, the rotational imageviewer scales the image differently along rotational angles to fill theviewport. In other words, the eligible viewport 704″ is always filledwith the image (e.g., letterboxes and pillar boxes are not present). Inthis orientation, there may be portions of the image/media cut off fromview in both the horizontal and vertical dimensions.

FIG. 4D depicts another image 462 for viewing in a viewport 464 of amobile device 466 in a first orientation (e.g., a vertical/portraitorientation). FIG. 4E depicts the image 462 (e.g., the same as image inFIG. 4D) for viewing in a viewport 464 of the mobile device 466 in asecond orientation (e.g., a vertical/landscape orientation).

FIGS. 5A-5E are respective flow charts 500, 504, 506, 508, and 510listing steps in example methods for implementing a rotational imageviewer. Although the steps are described with reference to the mobiledevice 101, other implementations of the steps described, for othertypes of electronic devices, will be understood by one of skill in theart from the description herein. Additionally, it is contemplated thatone or more of the steps shown in FIGS. 5A-5E, and described herein, maybe omitted, performed simultaneously or in a series, performed in anorder other than illustrated and described, or performed in conjunctionwith additional steps.

FIG. 5A depicts a flow chart 500 for viewing an image in a viewport of adisplay responsive to the orientation of the display. At block 502, themobile device receives an image. In an example, the processor 130 of themobile device 101 retrieves the image from memory 140. The processor 130may have previously captured the image, e.g., using the camera 170, andstored the image in the memory 140. Alternatively, the processor mayhave received the image from another device, e.g., via a transceiver110/120 and stored the image in the memory 140.

At block 504, the mobile device detects parameter of the viewport. Inone example, the processor 130 detects the parameters by requesting avertical pixel height and a horizontal pixel height of the viewport fromthe driver 182 of the display 180 (block 504 a) and receiving thevertical pixel height the horizontal pixel from the driver 182 (block504 b). Using the received vertical pixel height and horizontal pixelheight, the processor identifies a central origin of the viewport (block504 c), point 0, 0. The processor 130 may determine the central originby dividing the vertical pixel height and the horizontal pixel height bya factor of two. The processor 130 then identifies first and secondadjacent vertices (e.g., vertex A and vertex B; FIGS. 4A-4E) on an edgeof the viewport (block 504 d). With respect to the origin 0, 0, a firstvertex (vertex A) may be located at one-half the received pixel heightand one-half the pixel width and the second vertex (vertex B) may belocated at one-half the received pixel height and minus one-half thepixel width. The processor 130 stores the vertical pixel height,horizontal pixel height, origin, and vertices in memory 140 (block 504e) for scaling calculations by the rotational image viewer.

At block 506, the mobile device detects dimensions of the image. In anexample, the processor 130 identifies a vertical dimension and ahorizontal dimension of the image (block 506 a). The processor 130 mayidentify the dimensions by reading metadata associated with the imagethat includes the dimensions. The processor 130 stores the dimensions ofthe image in memory 140 (block 506 b) for scaling calculations by therotational image viewer.

At block 508, the mobile device monitors the orientation of the display.In one example, the processor 130 monitors the orientation by requestingthe orientation from the IMU 172 (block 508 a). The processor 130 thenreceives the orientation from the IMU 172 in response to the requests(block 508 b), The processor periodically repeats the steps of blocks508 a and 508 b (e.g., every 10 milliseconds based on an internally settimer) in order to scale and position the image within the viewportwhile reducing lag.

At block 510, the mobile device scales the image responsive to themonitored orientation of the display such that at least a portion of theimage fills the viewport regardless of the monitored orientation. In anexample, at block 510 a, the processor 130 calculates a circle extendingfrom the central origin to one of the first and second vertices (vertexA or vertex B). The processor 130 then monitor positions of the firstand second vertices on the circle in polar coordinates responsive to theorientation information from the IMU 172 (block 510 b). The processor130 convert the polar coordinate positions to cartesian coordinatepositions (block 510 c) for use with the image. The processor 130 thenadjusts the image to fill the viewport using the cartesian coordinatepositions responsive to the polar coordinate positions of the first andsecond vertices on the circle (block 510 d).

In an example, the image is initially centered within the viewport andsized such that a first image edge of the image is adjacent a firstviewable edge of the viewport and a second image edge of the imageextends beyond a second viewable edge of the viewport. Additionally, thecircle includes at least an exterior portion that extends beyond thefirst viewable edge and an interior portion that does not extend beyondthe first viewable edge. To scale the image, the processor 130 enlargesthe image when a vertex, moving from the interior portion of the circle,reaches the exterior portion of the circle and reduces the image tomaintain the vertex on the viewable edge when the vertex reaches aninterior portion of the circle.

At block 512, the mobile device presents the scaled image. In anexample, the processor 130 presents the image by sending the image alongwith appropriate scaling information to the image driver 182.

At block 514, optionally, the mobile device monitors touches/gestures onthe display, movement of the display in a dimension other than thedimension used for rotational viewing of the image, or both. In oneexample, the processor 130 monitors touches/gestures on the user inputlayer 191. For example, a finger drag left or a finger drag left. Inanother example, the processor 130 monitors movement of the display inother dimensions, e.g., about an axis normal to the axis about which therotational image view uses to the scale the image. For example, therotation image viewer may scale the image responsive to rotation of thedisplay about a first degree of freedom (e.g., a horizontal axis) andthe processor 130 may additionally track movement about a second degreeof freedom (e.g., a vertical axis) for taking another action.

At block 516, optionally, the mobile device presents different portionsof the scaled image within the viewport on the touchscreen. In oneexample, the mobile device presents different portions responsive togestures on the display. In another example, the mobile device presentsdifferent portions response to movement about a second degree offreedom. In an example, the processor 130 presents the image by sendingthe image along with appropriate scaling information and presentationportion (e.g., by adjusting the central origin) to the image driver 182.Rotation of the display to the right/left about a vertical axis or afinger drag to the right/left results in the processor 130 shifting theviewport 466 to the right/left along axis 468 (FIG. 4D). Similarly,rotation of the display to the top/bottom about a horizontal axis normalto the axis used by the rotational image viewer for scaling or a fingerdrag to the top/bottom results in the processor 130 shifting theviewport 466 up/down along axis 470 (FIG. 4E).

In accordance with this example, the processor scales the imageresponsive to the orientation in the first degree of freedom, and theprocessor is further configured to present different portions of thescaled image in the viewport responsive to the orientation in the seconddegree of freedom.

Pseudo code for an example rotational image viewer is depicted in Table1:

TABLE 1 // mediaSize - original media size // rotation - device rotationchange // radius - radius of the circle the rectangle is inscribed in Size fittingSize = {0.0, 0.0};  {   // The coordinates of the point Ain the polar coordinate system   Point Ap = {radius, ϕ}   // Thecoordinates of point A in the cartesian coordinate system   Point Ac ={abs(radius * cos(ϕ + rotation)), abs(radius * sin(ϕ +   rotation))};  fittingSize.height = 2.0f * Ac.y;   fittingSize.width = 2.0f * Ac.x; }  {   // The coordinates of the point B in the polar coordinate system  Point Bp = {radius, PI − ϕ};   // The coordinates of point B in thecartesian coordinate system   Point Bc = {abs(radius * cos(ϕ +rotation)), abs(radius * sin(ϕ +   rotation))};   fittingSize.height =MAX(fittingSize.height, 2.0f * Bc.y);   fittingSize.width =MAX(fittingSize.width, 2.0f * Bc.x);  }  Float scaledWidth =mediaSize.width * fittingSize.height / mediaSize.  height;  //respecting the vertical dimension first  if (scaledWidth >=fittingSize.width) {   return {scaledWidth, fittingSize.height};  } else{   Float scaledHeight = fittingSize.width * mediaSize.height /mediaSize.   width;   return {fittingSize.width, scaledHeight};  }

In this example, the processor tracks the movements of vertex A andvertex B (see FIGS. 4A-E) of the rectangle (i.e., the viewport)inscribed in the circle based on the current rotation angle in the polarcoordinate system and convert them back to the Cartesian coordinatesystem to determine the minimum scale. Initially, the vertical dimensionis respected—making the image/media fit to the height of the viewportprecisely and cut off the media from view in a horizontal dimension. Assoon as mattes or masking would start showing up in the horizontaldimension to maintain the aspect ratio of the image, the horizontaldimension is respected—making the image/media fit the width of theviewport precisely and cut off the media from view in a verticaldimension. In other words, when the image/media no longer completelyfills the viewport such that letterboxing (horizontal mattes or masking)or pillarboxing (vertical mattes or masking) would conventionally beused to display the image/media, the image/media is enlarged to fill theviewport (while maintaining the aspect ratio) in the dimension that themattes or masking would have conventionally been added.

Any of the functionality described herein for an electronic device(e.g., the mobile device 101 or the eyewear device 200) and the networkdevice 201 can be embodied in one or more computer software applicationsor sets of programming instructions, as described herein. According tosome examples, “function,” “functions,” “application,” “applications,”“instruction,” “instructions,” or “programming” are program(s) thatexecute functions defined in the programs. Various programming languagescan be employed to develop one or more of the applications, structuredin a variety of manners, such as object-oriented programming languages(e.g., Objective-C, Java, or C++) or procedural programming languages(e.g., C or assembly language). In a specific example, a third-partyapplication (e.g., an application developed using the ANDROID™ or IOS™software development kit (SDK) by an entity other than the vendor of theparticular platform) may include mobile software running on a mobileoperating system such as IOS™, ANDROID™, WINDOWS® Phone, or anothermobile operating systems. In this example, the third-party applicationcan invoke API calls provided by the operating system to facilitatefunctionality described herein.

Hence, a machine-readable medium may take many forms of tangible storagemedium. Non-volatile storage media include, for example, optical ormagnetic disks, such as any of the storage devices in any computerdevices or the like, such as may be used to implement the client device,media gateway, transcoder, etc. shown in the drawings. Volatile storagemedia include dynamic memory, such as main memory of such a computerplatform. Tangible transmission media include coaxial cables; copperwire and fiber optics, including the wires that comprise a bus within acomputer system. Carrier-wave transmission media may take the form ofelectric or electromagnetic signals, or acoustic or light waves such asthose generated during radio frequency (RF) and infrared (IR) datacommunications. Common forms of computer-readable media thereforeinclude for example: a floppy disk, a flexible disk, hard disk, magnetictape, any other magnetic medium, a CD-ROM, DVD or DVD-ROM, any otheroptical medium, punch cards paper tape, any other physical storagemedium with patterns of holes, a RAM, a PROM and EPROM, a FLASH-EPROM,any other memory chip or cartridge, a carrier wave transporting data orinstructions, cables or links transporting such a carrier wave, or anyother medium from which a computer may read programming code or data.Many of these forms of computer readable media may be involved incarrying one or more sequences of one or more instructions to aprocessor for execution.

Except as stated immediately above, nothing that has been stated orillustrated is intended or should be interpreted to cause a dedicationof any component, step, feature, object, benefit, advantage, orequivalent to the public, regardless of whether it is or is not recitedin the claims.

It will be understood that the terms and expressions used herein havethe ordinary meaning as is accorded to such terms and expressions withrespect to their corresponding respective areas of inquiry and studyexcept where specific meanings have otherwise been set forth herein.Relational terms such as first and second and the like may be usedsolely to distinguish one entity or action from another withoutnecessarily requiring or implying any actual such relationship or orderbetween such entities or actions. The terms “comprises,” “comprising,”“includes,” “including,” or any other variation thereof, are intended tocover a non-exclusive inclusion, such that a process, method, article,or apparatus that comprises or includes a list of elements or steps doesnot include only those elements or steps but may include other elementsor steps not expressly listed or inherent to such process, method,article, or apparatus. An element preceded by “a” or “an” does not,without further constraints, preclude the existence of additionalidentical elements in the process, method, article, or apparatus thatcomprises the element.

Unless otherwise stated, any and all measurements, values, ratings,positions, magnitudes, sizes, and other specifications that are setforth in this specification, including in the claims that follow, areapproximate, not exact. Such amounts are intended to have a reasonablerange that is consistent with the functions to which they relate andwith what is customary in the art to which they pertain. For example,unless expressly stated otherwise, a parameter value or the like mayvary by as much as plus or minus ten percent from the stated amount orrange.

In addition, in the foregoing Detailed Description, it can be seen thatvarious features are grouped together in various examples for thepurpose of streamlining the disclosure. This method of disclosure is notto be interpreted as reflecting an intention that the claimed examplesrequire more features than are expressly recited in each claim. Rather,as the following claims reflect, the subject matter to be protected liesin less than all features of any single disclosed example. Thus, thefollowing claims are hereby incorporated into the Detailed Description,with each claim standing on its own as a separately claimed subjectmatter.

While the foregoing has described what are considered to be the bestmode and other examples, it is understood that various modifications maybe made therein and that the subject matter disclosed herein may beimplemented in various forms and examples, and that they may be appliedin numerous applications, only some of which have been described herein.It is intended by the following claims to claim any and allmodifications and variations that fall within the true scope of thepresent concepts.

What is claimed is:
 1. A rotational image viewer, the rotational imageviewer comprising: a display having a viewport; an orientation sensorconfigured to monitor orientation of the display; and a processorcoupled to the display and the orientation sensor, the processorconfigured to receive an image, detect parameter of the viewport, detectdimensions of the image, monitor the orientation of the display, scalethe image responsive to the monitored orientation of the display suchthat at least a portion of the image fills the viewport regardless ofthe monitored orientation, and present the scaled image.
 2. The viewerof claim 1, wherein the display is a touchscreen and wherein theprocessor is further configured to present different portions of thescaled image on the touchscreen responsive to gestures on the display.3. The viewer of claim 1, wherein the orientation sensor is configuredto monitor orientation of the display in a first degree of freedom and asecond degree of freedom, the processor scales the image responsive tothe orientation in the first degree of freedom, and the processor isfurther configured to present different portions of the scaled image inthe viewport responsive to the orientation in the second degree offreedom.
 4. The viewer of claim 1, wherein the display comprises adisplay driver that defines a vertical pixel height for the viewport anda horizontal pixel height for the viewport and wherein, to detect theparameters of the viewport, the processor requests the vertical pixelheight and the horizontal pixel height from the display driver.
 5. Theviewer of claim 4, wherein the processor is further configured toidentify a central origin of the viewport and first and second verticesof an edge of the viewport; and wherein the parameters of the viewportinclude the vertical pixel height, the horizontal pixel height, thecentral origin, the first vertex, and the second vertex.
 6. The viewerof claim 5, wherein, to scale the image, the processor is configured tocalculate a circle extending from the central origin to one of the firstand second vertices, monitor positions of the first and second verticeson the circle in polar coordinates, convert the polar coordinatepositions to cartesian coordinate positions, and adjust the image tofill the viewport using the cartesian coordinate positions responsive tothe polar coordinate positions of the first and second vertices on thecircle.
 7. The viewer of claim 6, wherein the image is initiallycentered within the viewport and sized such that a first image edge ofthe image is adjacent a first viewable edge of the viewport and a secondimage edge of the image extends beyond a second viewable edge of theviewport and wherein the circle includes at least an exterior portionthat extends beyond the first viewable edge and an interior portion thatdoes not extend beyond the first viewable edge.
 8. The viewer of claim7, wherein, to scale the image, the processor enlarges the image when afirst vertex, moving from the interior portion of the circle, reachesthe exterior portion of the circle.
 9. The viewer of claim 8, wherein,to scale the image, the processor reduces the image to maintain thefirst vertex on the first viewable edge when the first vertex reaches aninterior portion of the circle.
 10. A rotational image viewing methodfor use with an electronic device including a display having a viewportand an orientation sensor, the method comprising: receiving an image;detecting parameters of the viewport; detecting dimensions of the image;monitoring the orientation of the display; scaling the image responsiveto the monitored orientation of the display such that at least a portionof the image fills the viewport regardless of the monitored orientation;and presenting the scaled image.
 11. The method of claim 10, wherein thedisplay is a touchscreen and wherein the method further comprises:monitoring gestures on the touchscreen; and presenting differentportions of the scaled image on the touchscreen responsive to thegestures on the display.
 12. The method of claim 10, wherein themonitoring comprises monitor orientation of the display in a firstdegree of freedom and a second degree of freedom; wherein the processorscales the image responsive to the orientation in the first degree offreedom, and wherein the method further comprises presenting differentportions of the scaled image in the viewport responsive to theorientation in the second degree of freedom.
 13. The method of claim 10,wherein the display comprises a display driver that defines a verticalpixel height for the viewport and a horizontal pixel height for theviewport and wherein the detecting comprises requesting the verticalpixel height and the horizontal pixel height from the display driver.14. The method of claim 13, further comprising: identifying a centralorigin of the viewport and first and second vertices of an edge of theviewport; wherein the parameters of the viewport include the verticalpixel height, the horizontal pixel height, the central origin, the firstvertex, and the second vertex.
 15. The method of claim 14, wherein thescaling comprises: calculating a circle extending from the centralorigin to one of the first and second vertices; monitoring positions ofthe first and second vertices on the circle in polar coordinates;converting the polar coordinate positions to cartesian coordinatepositions; and adjusting the image to fill the viewport using thecartesian coordinate positions responsive to the polar coordinatepositions of the first and second vertices on the circle.
 16. The methodof claim 15, wherein the image is initially centered within the viewportand sized such that a first image edge of the image is adjacent a firstviewable edge of the viewport and a second image edge of the imageextends beyond a second viewable edge of the viewport and wherein thecircle includes at least an exterior portion that extends beyond thefirst viewable edge and an interior portion that does not extend beyondthe first viewable edge.
 17. The method of claim 16, wherein the scalingcomprises: enlarging the image when a first vertex, moving from theinterior portion of the circle, approaches the exterior portion of thecircle.
 18. The method of claim 17, wherein the scaling furthercomprises: reducing the image to maintain the first vertex on the firstviewable edge when the first vertex approaches an interior portion ofthe circle.
 19. A non-transitory computer-readable medium storingprogram code which, when executed on an electronic device including adisplay having a viewport, an orientation sensor, and a processor, isoperative to cause the processor to perform the steps of: receiving animage; detecting parameters of the viewport; detecting dimensions of theimage; monitoring the orientation of the display; scaling the imageresponsive to the monitored orientation of the display such that atleast a portion of the image fills the viewport regardless of themonitored orientation; and presenting the scaled image.
 20. Thenon-transitory computer-readable medium storing program code of claim19, wherein the scaling comprises: calculating a circle extending from acentral origin of the display to one of first and second vertices on anedge of the viewport; monitoring positions of the first and secondvertices on the circle in polar coordinates; converting the polarcoordinate positions to cartesian coordinate positions; and adjustingthe image to fill the viewport using the cartesian coordinate positionsresponsive to the polar coordinate positions of the first and secondvertices on the circle.